@Service
public class RecommendationServiceImpl implements RecommendationService {

    private final UserRecommendationRepository recommendationRepository;

    public RecommendationServiceImpl(UserRecommendationRepository recommendationRepository) {
        this.recommendationRepository = recommendationRepository;
    }

    @Override
    public List<UserRecommendation> getRecommendationsByUserId(Long userId) {
        return recommendationRepository.findByUserId(userId);
    }
}
